package com.pptiku.jh.routerdemo;

import android.content.Context;
import android.content.Intent;

import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.annotation.Interceptor;
import com.alibaba.android.arouter.facade.callback.InterceptorCallback;
import com.alibaba.android.arouter.facade.template.IInterceptor;
import com.alibaba.android.arouter.launcher.ARouter;

/**
 * Created by ytf on 2018/5/31.
 * Description:
 */
@Interceptor(priority = 8)
public class LoginInterceptor implements IInterceptor
{
    private Object mContext;

    @Override
    public void process(Postcard postcard, InterceptorCallback callback)
    {
//        if(!App.isIsss())
//        {
//            ARouter.getInstance().build("/business/login").greenChannel().navigation();
//            callback.onInterrupt(null);
//        }else
//        {
            callback.onContinue(postcard);
//        }
    }

    @Override
    public void init(Context context)
    {
    }
}
